package com.t2t.top.service;

import com.t2t.top.exception.ServiceException;
import com.t2t.top.framework.model.BaseBO;

import java.util.List;

/**
 * Created by yangpengfei on 2015/11/3.
 */
public interface BaseService {
    public void add(BaseBO model) throws ServiceException;

    public void update(BaseBO model) throws ServiceException;

    public void delete(BaseBO model) throws ServiceException;

    public BaseBO get(Class<BaseBO> cls, String id) throws ServiceException;

    public List<BaseBO> query(BaseBO model) throws ServiceException;
}
